<div id="page">
    <div>
        <h1 class="title"><a href='#'><?php echo $this->title_hot_news ?></a></h1>
        <div class='list-news'>
        <?php 
        if(isset($this->hot_news)){
            foreach($this->hot_news as $item){
                echo "<div class='item'>";
                    echo "<div class='slideshow'>";
                        $imgs = explode(";",$item['thumbnail_url']);                        
                         if(isset($imgs)){
//                            $count = 0;
//                            foreach($imgs as $img){
//                                if($count!=0)
//                                    echo "<img class='change' style='display:none;' src='".$img."'  >";
//                                else
//                                    echo "<img class='change' src='".$img."'>";
//                                $count ++;
//                            }
                              echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id']."'>";
                             echo "<img class='change' src='".$imgs[0]."'>";
                             echo "</a>";
                        }                       
                    echo "</div>";
                    echo "<div class='item_right'>";
                     echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id']."'>";
                        echo "<h2 class='title'>".$item['title']."</h2>";
                        echo "</a>";
                        echo "<p>".$item['des']."</p>";
                        echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id']."' class='more'>Xem thêm</a>";
                    echo "</div>";
                    echo "<div class='clear'></div>";
                echo "</div>";
              
            }
        echo "<div class='view-more-news' last='".count($this->hot_news)."' cat='".$this->title_hot_news_id."'>Xem thêm tin tức</div>";
        }else{
            echo "No news available .";
        }
       
        
    ?>
        </div>        
        
    </div>
    <div>
        <h1  class="title"><a href='#'><?php echo $this->title_domestic_news ?></a></h1>
        <div class='list-news'>
        <?php 
        if(isset($this->domestic_news)){
            foreach($this->domestic_news as $item){
                echo "<div class='item'>";
                    echo "<div class='slideshow'>";
                        $imgs = explode(";",$item['thumbnail_url']);                        
                        if(isset($imgs)){
//                            $count = 0;
//                            foreach($imgs as $img){
//                                if($count!=0)
//                                    echo "<img class='change' style='display:none;' src='".$img."'  >";
//                                else
//                                    echo "<img class='change' src='".$img."'>";
//                                $count ++;
//                            }
                            echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."'>";
                             echo "<img class='change' src='".$imgs[0]."'>";
                             echo "</a>";
                        }                          
                    echo "</div>";
                    echo "<div class='item_right'>";
                        echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."'>";
                        echo "<h2 class='title'>".$item['title']."</h2>";
                        echo "</a>";
                        echo "<p>".$item['des']."</p>";
                        echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."' class='more'>Xem thêm</a>";
                    echo "</div>";
                    echo "<div class='clear'></div>";
                echo "</div>";
                
            }
            echo "<div class='view-more-news' last='".count($this->domestic_news)."' cat='".$this->title_domestic_news_id."'>Xem thêm tin tức</a></div>";
        }else{
            echo "No news available .";
        }
        
        
    ?>
        </div>        
        
    </div>
    <div>
        <h1  class="title"><a href='#'><?php echo $this->title_international_news ?></a></h1>
        <div class='list-news'>
        <?php 
        if(isset($this->international_news)){
            foreach($this->international_news as $item){
                echo "<div class='item'>";
                    echo "<div class='slideshow'>";
                        $imgs = explode(";",$item['thumbnail_url']);                        
                         if(isset($imgs)){
//                            $count = 0;
//                            foreach($imgs as $img){
//                                if($count!=0)
//                                    echo "<img class='change' style='display:none;' src='".$img."'  >";
//                                else
//                                    echo "<img class='change' src='".$img."'>";
//                                $count ++;
//                            }
                             echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."'>";
                              echo "<img class='change' src='".$imgs[0]."'>";
                              echo "</a>";
                        }                         
                    echo "</div>";
                    echo "<div class='item_right'>";
                    echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."'>";
                        echo "<h2 class='title'>".$item['title']."</h2>";
                        echo "</a>";
                        echo "<p>".$item['des']."</p>";
                        echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."' class='more'>Xem thêm</a>";
                    echo "</div>";
                    echo "<div class='clear'></div>";
                echo "</div>";
                
            }
              echo "<div class='view-more-news' last='".count($this->international_news)."' cat='".$this->title_international_news."'>Xem thêm tin tức</div>";
        }else{
            echo "No news available .";
        }
        
    ?>
        </div>        
       
    </div>
    <div >
        <h1  class="title"><a href='#'><?php echo $this->title_public_health ?></a></h1>
        <div class='list-news'>
        <?php 
        if(isset($this->public_health)){
            foreach($this->public_health as $item){
                echo "<div class='item'>";
                    echo "<div class='slideshow'>";
                        $imgs = explode(";",$item['thumbnail_url']);                        
                         if(isset($imgs)){
//                            $count = 0;
//                            foreach($imgs as $img){
//                                if($count!=0)
//                                    echo "<img class='change' style='display:none;' src='".$img."'  >";
//                                else
//                                    echo "<img class='change' src='".$img."'>";
//                                $count ++;
//                            }
                             echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."'>";
                              echo "<img class='change' src='".$imgs[0]."'>";
                              echo "</a>";
                        }                        
                    echo "</div>";
                    echo "<div class='item_right'>";
                    echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."'>";
                        echo "<h2 class='title'>".$item['title']."</h2>";
                        echo "</a>";
                        echo "<p>".$item['des']."</p>";
                        echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."' class='more'>Xem thêm</a>";
                    echo "</div>";
                    echo "<div class='clear'></div>";
                echo "</div>";
                
            }
             echo "<div class='view-more-news' last='".count($this->public_health)."' cat='".$this->title_public_health."'>Xem thêm tin tức</div>";
        }else{
            echo "No news available .";
        }
         
    ?>
        </div>        
        
    </div>
    
</div>